﻿namespace WeatherSpider.Models
{
    public class Weather
    {
        /// <summary>
        /// 气温
        /// </summary>
        public int Temperature { get; set; }

        /// <summary>
        /// 天气情况
        /// </summary>
        public string Description { get; set; } = null!;

        /// <summary>
        /// 风向
        /// </summary>
        public string WindDirection { get; set; } = null!;

        /// <summary>
        /// 风力
        /// </summary>
        public string WindScale { get; set; } = null!;

        public override string ToString()
        {
            return $"{Description} {Temperature}℃ {WindDirection}{WindScale}";
        }
    }
}
